package model.entity;

public class ShoppingCart {
    private int id;
    private String name;
    private String image;
    private int user_id;
    private int dish_id;
    private int setmeal_id;
    private int category_id;
    private int number;
    private float amount;
    private String create_time;

    public ShoppingCart() {
    }

    public ShoppingCart(int id, String name, String image, int user_id, int dish_id, int setmeal_id, int category_id, int number, float amount, String create_time) {
        this.id = id;
        this.name = name;
        this.image = image;
        this.user_id = user_id;
        this.dish_id = dish_id;
        this.setmeal_id = setmeal_id;
        this.category_id = category_id;
        this.number = number;
        this.amount = amount;
        this.create_time = create_time;
    }

    /**
     * 获取
     * @return id
     */
    public int getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return image
     */
    public String getImage() {
        return image;
    }

    /**
     * 设置
     * @param image
     */
    public void setImage(String image) {
        this.image = image;
    }

    /**
     * 获取
     * @return user_id
     */
    public int getUser_id() {
        return user_id;
    }

    /**
     * 设置
     * @param user_id
     */
    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    /**
     * 获取
     * @return dish_id
     */
    public int getDish_id() {
        return dish_id;
    }

    /**
     * 设置
     * @param dish_id
     */
    public void setDish_id(int dish_id) {
        this.dish_id = dish_id;
    }

    /**
     * 获取
     * @return setmeal_id
     */
    public int getSetmeal_id() {
        return setmeal_id;
    }

    /**
     * 设置
     * @param setmeal_id
     */
    public void setSetmeal_id(int setmeal_id) {
        this.setmeal_id = setmeal_id;
    }

    /**
     * 获取
     * @return category_id
     */
    public int getCategory_id() {
        return category_id;
    }

    /**
     * 设置
     * @param category_id
     */
    public void setCategory_id(int category_id) {
        this.category_id = category_id;
    }

    /**
     * 获取
     * @return number
     */
    public int getNumber() {
        return number;
    }

    /**
     * 设置
     * @param number
     */
    public void setNumber(int number) {
        this.number = number;
    }

    /**
     * 获取
     * @return amount
     */
    public float getAmount() {
        return amount;
    }

    /**
     * 设置
     * @param amount
     */
    public void setAmount(float amount) {
        this.amount = amount;
    }

    /**
     * 获取
     * @return create_time
     */
    public String getCreate_time() {
        return create_time;
    }

    /**
     * 设置
     * @param create_time
     */
    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String toString() {
        return "ShoppingCart{id = " + id + ", name = " + name + ", image = " + image + ", user_id = " + user_id + ", dish_id = " + dish_id + ", setmeal_id = " + setmeal_id + ", category_id = " + category_id + ", number = " + number + ", amount = " + amount + ", create_time = " + create_time + "}";
    }
}
